

using MyFeignTest.Feign.Service;
using Org.LyrcsoftFramework.Cloud.Core;
using Org.LyrcsoftFramework.Cloud.OpenFeign.Attributes;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Web.Http;
using System.Web.Services.Description;

namespace WebApp.Controllers
{
    [RoutePrefix("api")]
    public class FeignController : ApiController
    {

        [Route("feign/echo/")]
        [HttpGet]
        public async Task<IEnumerable<String>> Get()
        {
            ITestFeignSerivce testFeignSerivce = ServiceFactory.GetService<ITestFeignSerivce>();
            return await testFeignSerivce.Get();
        }
    }
}